<?php
include 'genesis/inc/functions.class.php';
include 'genesis/inc/filter.class.php';



$filter = new GFilter();
$filter->addFilter('AND', 'usu_cha_status', '=', 's', 'A');
$filter->addFilter('AND', 'usu_var_nome', 'LIKE', 's', "'%rio%'");
$filter->addFilter('AND', 'usu_dti_inclusao', 'BETWEEN', 'ss', array('2012-05-01','2012-05-30'), 'F');
$filter->addFilter('AND', 'usu_int_codigo', 'IN', '', GF::convertArrayToString(array('1','2','3')) , 'F');
echo $filter->getWhere(),'<BR>';
print_r($filter->getParam());
?>
